import BaseState from "../../LTGame/Fsm/BaseState";
import { ESceneType } from "../../LTGame/Start/ESceneType";
import { UI_MainMediator } from "../ui/UI_MainMediator";
import Game3d from "./Main3d/game3d";
import Const from "../common/Const";

export default class MainScene extends BaseState {

    constructor() {
        super(ESceneType.Main);
    }

    _DoEnter() {
        //     LTSDK.instance.checkState = ECheckState.NoGame;
        //     console.error("[测试功能]强制设置checkstate", LTSDK.instance.checkState);
        if (Const.support2D) {
            Laya.Physics && Laya.Physics.enable();
            Laya.PhysicsDebugDraw.enable();
        }
        if (Const.support3D) {
            Game3d.instance.enterGame();
        }
        UI_MainMediator.instance.Show();
    }
}